﻿<Window x:Class="SuperKinhLuan.Games.PeerChess.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:SuperKinhLuan.Games.PeerChess.Elements"
    Title="PeerChess" Height="700" Width="600">
    <Grid>
        <Grid.Resources>
            <Style TargetType="{x:Type Image}">
                <Setter Property="Clip">
                    <Setter.Value>
                        <EllipseGeometry Center="25 25" RadiusX="25" RadiusY="25" />    
                    </Setter.Value>
                </Setter>
            </Style>
        </Grid.Resources>
        
        <ItemsControl Margin="10">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <local:ChessBoard />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>

            <Image Source="Images/Pieces/Red_General.gif" Grid.Row="4" Grid.Column="6" />
            <Image Source="Images/Pieces/Blue_General.gif" Grid.Row="2" Grid.Column="4" />
        </ItemsControl>
        
    </Grid>
</Window>
